package com.sdy.exp;

import com.sdy.util.R;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @program: ssm-sm
 * @author: sdy
 * @create: 2022-12-06 20:35
 **/
//@RestControllerAdvice
public class MyExceptionHandler {

    @ExceptionHandler(Exception.class)
    public R exp(){
        return R.exp("系统异常，请联系管理员");
    }

}
